import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { join } from "path";
import path from "path";

const resolve = (path: string) => join(__dirname, path);
const pathResolve = (pathStr) => {
  return path.resolve(__dirname, pathStr);
};
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  resolve: {
    // 根据需要新增
    alias: {
      "@": resolve("src"),
    },
  },
})
